<template>
    <div class="nav">
        <div class="logo">
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-zhihuikaoshi"></use>
            </svg>
            <span>考神exam</span>
        </div>
        <ul>
            <li><router-link to="/Home">主页</router-link></li>
            <li><router-link to="/AboutWe">关于我们</router-link></li>
            <li><router-link to="/Mine">创建考试项目</router-link></li>
        </ul>
        <router-view></router-view>
    </div>
</template>

<script>
    export default {
        name: "navigation",
    }
</script>

<style scoped>
    .nav {
        width: 100%;
        height: 60px;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
    }
    .nav ul {
        display: flex;
        float: right;
        width: 400px;
    }
    .nav ul li {
        display: inline-block;
        margin-right: 30px;
    }
    .nav ul li a:hover {
        border-bottom: 2px solid #fff;
    }
    .nav ul li a {
        align-self: center;
        display: inline-block;
        height: 25px;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        margin-top: 20px;
    }
    .nav .logo {
        float: left;
        font-size: 40px;
        color: #fff;
        margin-left: 90px;
        margin-top: 10px;
    }
    .nav .logo span {
        font-size: 25px;
        color: #ffff;
        font-weight: 400;
        margin-left: 6px;
        font-family: STXingkai;
    }
</style>
